package cn.gzjp.modules.logis.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 城市运费单价Entity
 * @author zengcp
 * @version 2018-05-24
 */
public class LogisFreightPrice extends DataEntity<LogisFreightPrice> {
	
	private static final long serialVersionUID = 1L;
	private String startCity;		// 出发城市
	private String endCity;		// 目的城市
	private String unitPrice;		// 运输单价(元/吨)
	private String returnUnitPrice;		// 返程单价(元/吨)

	private String unitPrice2;//零拼
	private String returnUnitPrice2;//

	private String referPrice;//参考价
	private String unitPriceBase;//单价基数
	private String returnUnitPriceBase;//返程基数

	private String endArea;//目的区
	private String startArea;//出发区

	private int distance;

	private int driverPrice;
	private int score;

	private int driverPrice2;
	private int score2;


	public LogisFreightPrice() {
		super();
	}

	public LogisFreightPrice(String id){
		super(id);
	}

	@Length(min=0, max=32, message="出发城市长度必须介于 0 和 32 之间")
	@ExcelField(title="出发城市", align=2, sort=1)
	public String getStartCity() {
		return startCity;
	}

	public void setStartCity(String startCity) {
		this.startCity = startCity;
	}
	
	@Length(min=0, max=32, message="目的城市长度必须介于 0 和 32 之间")
	@ExcelField(title="目的城市", align=2, sort=2)
	public String getEndCity() {
		return endCity;
	}

	public void setEndCity(String endCity) {
		this.endCity = endCity;
	}
	
	@Length(min=0, max=32, message="运输单价(元/吨)长度必须介于 0 和 32 之间")
	@ExcelField(title="运输单价(元/吨)", align=2, sort=3)
	public String getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(String unitPrice) {
		this.unitPrice = unitPrice;
	}
	
	@Length(min=0, max=32, message="返程单价(元/吨)长度必须介于 0 和 32 之间")
	@ExcelField(title="返程单价(元/吨)", align=2, sort=4)
	public String getReturnUnitPrice() {
		return returnUnitPrice;
	}

	public void setReturnUnitPrice(String returnUnitPrice) {
		this.returnUnitPrice = returnUnitPrice;
	}

	public String getUnitPrice2() {
		return unitPrice2;
	}

	public void setUnitPrice2(String unitPrice2) {
		this.unitPrice2 = unitPrice2;
	}

	public String getReturnUnitPrice2() {
		return returnUnitPrice2;
	}

	public void setReturnUnitPrice2(String returnUnitPrice2) {
		this.returnUnitPrice2 = returnUnitPrice2;
	}

	public String getReferPrice() {
		return referPrice;
	}

	public void setReferPrice(String referPrice) {
		this.referPrice = referPrice;
	}

	public String getUnitPriceBase() {
		return unitPriceBase;
	}

	public void setUnitPriceBase(String unitPriceBase) {
		this.unitPriceBase = unitPriceBase;
	}

	public String getReturnUnitPriceBase() {
		return returnUnitPriceBase;
	}

	public void setReturnUnitPriceBase(String returnUnitPriceBase) {
		this.returnUnitPriceBase = returnUnitPriceBase;
	}

	public String getEndArea() {
		return endArea;
	}

	public void setEndArea(String endArea) {
		this.endArea = endArea;
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public int getDriverPrice() {
		return driverPrice;
	}

	public void setDriverPrice(int driverPrice) {
		this.driverPrice = driverPrice;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getDriverPrice2() {
		return driverPrice2;
	}

	public void setDriverPrice2(int driverPrice2) {
		this.driverPrice2 = driverPrice2;
	}

	public int getScore2() {
		return score2;
	}

	public void setScore2(int score2) {
		this.score2 = score2;
	}

	public String getStartArea() {
		return startArea;
	}

	public void setStartArea(String startArea) {
		this.startArea = startArea;
	}
}